home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / RCSC.ZIP / BIN / MKLIBC.BAT < prev    next >
DOS Batch File  |  1997-01-12  |  678b  |  25 lines

  1. echo off
  2. rem ***************************************************
  3. rem create library source file for linking rcsc program
  4. rem parameter 1 contains the path of rcsc
  5. rem parameter 2 contains the info file name
  6. rem ***************************************************
  7. echo #include "%1\src\stdio.h" > tmp
  8. echo #include "%1\lib51\runtime.c" >> tmp
  9. awk  -f %1\bin\genlib.awk -v path=%1\lib51 %2 | sort | uniq >> tmp
  10. fc %2.c tmp | grep "no differences"
  11. if not errorlevel 1 goto match
  12. del %2.c
  13. echo creating/updating %2.c...
  14. ren tmp %2.c
  15. rcsc %2.c
  16. m4 %1\bin\8051.m4 %2.m4 > %2.s
  17. cas -c %2.s
  18. goto end
  19.  
  20. :match
  21. echo no change in library function requirements
  22.  
  23. :end
  24.  
  25.